import service from "@/utils/request";

export default class ApiUser {
  // 获取登录二维码
  static getQrcode(uuid,language = "zh") {
    return service({
      url: "api/login/loginQrcode",
      method: "POST",
      data: {
        uuid,
        language,
      },
    });
  }

  // 用于轮询请求是否登录
  static checkLogin(uuid) {
    return service({
      url: `api/v2/check/login/${uuid}`,
      method: "GET",
    });
  }

  // 查询多个用户信息
  static getUserListInfo(params) {
    return service({
      url: `api/v2/user/detail`,
      method: "GET",
      params
    });
  }

  // 根据uid获取用户token
  static getUserTokenById(params) {
    return service({
      url: `api/getTokenByUid`,
      method: "GET",
      params
    });
  }
}
